Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #17797 -- Realsig+ generates nested closures with incorrect Generic arguments #17877

Merged
merged 20 commits into from
Jan 14, 2025

Conversation

KevinRansom
Copy link
Member

@KevinRansom KevinRansom commented Oct 13, 2024

When realsig+ is specified we generate closures as nested classes rather than classes at the same level as the class that the closures are for. This eliminates the need for members of the class to be internal allowing us to make the members private to reflect their source visibility.

Issue 17797 occurs because the closures were generated without the generic parameters. This fix addresses that by getting the generic parameters from the argument/typar environment.

@KevinRansom KevinRansom requested a review from a team as a code owner October 13, 2024 04:04
@KevinRansom KevinRansom marked this pull request as draft October 13, 2024 04:04
Copy link
Contributor

github-actions bot commented Oct 13, 2024

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/9.0.300.md

@KevinRansom KevinRansom force-pushed the fix17797 branch 4 times, most recently from 35a8aad to a7eeda8 Compare October 20, 2024 01:44
@KevinRansom KevinRansom force-pushed the fix17797 branch 5 times, most recently from bb06ffa to 1d562ef Compare November 8, 2024 20:58
@KevinRansom KevinRansom force-pushed the fix17797 branch 8 times, most recently from e13abad to ef80877 Compare November 20, 2024 01:49
@KevinRansom KevinRansom changed the title WIP : Attempt to fix #17797 Fix #17797 -- Realsig+ generates nested closures with incorrect Generic arguments Nov 20, 2024
@KevinRansom KevinRansom marked this pull request as ready for review November 20, 2024 05:20
@T-Gro
Copy link
Member

T-Gro commented Nov 26, 2024

My review is finished, but let's wait for the ilverify for realsig as a CI step as well.

…is/SymbolicOperators.fs


Yeah the comments are pointless.

Co-authored-by: Tomas Grosup <[email protected]>
Copy link
Member Author

@KevinRansom KevinRansom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make these changes, they are good suggestions.

Copy link
Member

@psfinaki psfinaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't find anything suspicious here, well tested IMO.

DEVGUIDE.md Outdated Show resolved Hide resolved
@KevinRansom KevinRansom enabled auto-merge (squash) January 13, 2025 16:42
@KevinRansom KevinRansom merged commit 9f360ed into dotnet:main Jan 14, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants